import http from "@/utils/request";
 
// 获取账单列表
export const getBillsList = async (data:any) => {
	return http.get<any>(`/contract/app/order/get`, data)
}

// 卡包 账户信息
export const getFinanceAccount = async (data:any) => {
	return http.get<any>(`/finance/account/get`, data)
}

// 卡包 钱包流水
export const financeAccountJournal = async (data:any) => {
	return http.get<any>(`/finance/account/journal/page`, data)
}

//卡包 余额充值 
export const financeRecharge = async (data) => {
	return http.post<any>(`/finance/account/recharge`, data)
}

//银行卡 OCR识别银行卡号
export const ocrBankCard = async (data) => {
	return http.post<any>(`/member/bank-card/ocr-bank-card`, data)
}

//银行卡 租客删除银行卡
export const deleBankCard = async (data) => {
	return http.post<any>(`/member/bank-card/disable-member-bank-card`, data)
}

//银行卡 租客绑定银行卡
export const bindBankCard = async (data) => {
	return http.post<any>(`/member/bank-card/bind-member-bank-card`, data)
}

// 银行卡 租客银行卡列表
export const listBankCard = async (data:any) => {
	return http.get<any>(`/member/bank-card/list-member-bank-card`, data)
}

//查询可用优惠券
export const getCouponList = async (data:any) => {
	return http.post<any>(`/member/coupon/check-bill-coupons`, data)
}

//优惠券叠加使用校验
export const checkBillCouponsOverlay = async (data:any) => {
	return http.post<any>(`/member/coupon/check-bill-coupons_overlay`, data)
}

//优惠券叠加信息返回
export const checkCouponsReturn = async (data:any) => {
	return http.post<any>(`/member/coupon/coupons-return`, data)
}

